package com.devframe.sys.loader;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public abstract class AbstractSysLoader implements  ApplicationContextAware{

	protected ApplicationContext applicationContext;
	public void setApplicationContext(ApplicationContext applicationContext)
			throws BeansException {
		this.applicationContext=applicationContext;
//		this.init();
	}
	/**
	 * 初始化方法
	 */
	public abstract void init();
	
	public ApplicationContext accessApplicationContext() {
		return applicationContext;
	}
	

}
